﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Universum.Model.Domain;

namespace Universum.Infrastructure.Persistence.Queries.User
{
	public class RoleByNameAndUsername : IDomainQuery<Role>
	{
		public RoleByNameAndUsername(string roleName, string username)
		{
			Expression = it => it.RoleName == roleName && it.Username == username;
		}
		#region IDomainQuery<Role> Members

		public System.Linq.Expressions.Expression<Func<Role, bool>> Expression
		{
			get;
			private set;
		}

		#endregion
	}
}
